package JavaDesign.report_1.t_2;

/**
 * @author zouran
 * createDate：2023/9/20  18:16
 */
public class Circle extends Geometry {
    double r;

    Circle(double r) {//构造函数
        this.r = r;
    }

    @Override
    public double getArea() {
        return r * r * 3.14;
    }
}
